package org.teamh.gui.loadingscreen;

import org.teamh.gui.GUI;

import de.lessvoid.nifty.Nifty;
import de.lessvoid.nifty.elements.Element;
import de.lessvoid.nifty.screen.Screen;
import de.lessvoid.nifty.screen.ScreenController;

public class LoadingScreenController implements ScreenController {

	private GUI gui;
	private Screen loadingScreenScreen;
	private Element image;

	public LoadingScreenController(GUI gui) {
		this.setGui(gui);
	}

	@Override
	public void bind(Nifty nifty, Screen loadingScreenScreen) {
		this.setLoadingScreenScreen(loadingScreenScreen);
		this.setImage(loadingScreenScreen.findElementByName("logo"));
	}
	public void exit(){

	}
	
	@Override
	public void onEndScreen() {
		// TODO Auto-generated method stub

	}

	@Override
	public void onStartScreen() {
		//image.startEffect(EffectEventId.onCustom, new FadeInEnd(), "fadeIn");
		// TODO Auto-generated method stub         
	}

	public void setGui(GUI gui) {
		this.gui = gui;
	}

	public GUI getGui() {
		return gui;
	}

	public void setLoadingScreenScreen(Screen loadingScreenScreen) {
		this.loadingScreenScreen = loadingScreenScreen;
	}

	public Screen getLoadingScreenScreen() {
		return loadingScreenScreen;
	}

	public void setImage(Element image) {
		this.image = image;
	}

	public Element getImage() {
		return image;
	}

}
